package com.duowei.diandan.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.duowei.diandan.db.entry.Fxhyksz;

import java.util.List;

@Dao
public interface FxhykszDao {

    @Query("SELECT zkfs FROM fxhyksz WHERE hykdj = :hykdj LIMIT 1")
    String queryZkfsByHykdj(String hykdj);

    @Insert
    void insert(List<Fxhyksz> list);

    @Query("DELETE FROM fxhyksz")
    void deleteAll();
}
